#include "MoveAdapter.h"
#include <QDebug>

#include "UI/ModRun/Output/FactoryOutput.h"

MoveAdapter::MoveAdapter(std::shared_ptr<InterFaceOld> pOld)
{
    m_pOld = pOld;
}

MoveAdapter::~MoveAdapter()
{

}

void MoveAdapter::Request()
{
    QString strOutput = "MoveAdapter::Request:执行新接口";
    qDebug() << strOutput;
    std::shared_ptr<IOutput> pOutPut = FactoryOutput::GetInstance()->CreateRunOutput();
    if (pOutPut)
    {
        std::initializer_list<QString> outList{ strOutput };
        pOutPut->OutPut(outList);
    }
    //老接口适配到新接口;
    if (m_pOld)
    {
        m_pOld->handleRequest();
    }
}
